/** When your routing table is too long, you can split it into small modules **/

import Layout from '@/layout'

const tableRouter = {
  path: '/form',
  name: 'FormController',
  component: Layout,
  meta: {
    title: '表单管理',
    icon: 'link'
  },
  children: [{
    path: 'activitylist',
    name: 'activitylist',
    component: () => import('@/views/formmanagement/activitylist/index'),

    meta: {
      title: '活动列表',
      icon: 'link'
    }
  },
  {
    path: 'activityxiangqing',
    name: 'activityxiangqing',
    component: () => import('@/views/formmanagement/activityxiangqing/index'),
    hidden: true,
    meta: {
      title: '活动详情',
      icon: 'link'
    }
  },
  {
    path: 'processedit',
    name: 'ProcessEdit',
    hidden: true,
    component: () => import('@/views/processList/edit'),
    meta: {
      title: '编辑流程',
      icon: 'link'
    }
  },
  {
    path: 'processadd',
    name: 'ProcessAdd',
    component: () => import('@/views/processList/add'),
    hidden: true,
    meta: {
      title: '新增流程',
      icon: 'link'
    }
  },
  {
    path: 'processlist',
    name: 'ProcessList',
    component: () => import('@/views/processList/list'),
    meta: {
      title: '流程列表',
      icon: 'link'
    }
  },
  {
    path: 'libraryedit',
    name: 'LibraryEdit',
    hidden: true,
    component: () => import('@/views/indexLibrary/edit'),
    meta: {
      title: '编辑指标库',
      icon: 'link'
    }
  },
  {
    path: 'libraryAdd',
    name: 'LibraryAdd',
    component: () => import('@/views/indexLibrary/add'),
    hidden: true,
    meta: {
      title: '新增指标库',
      icon: 'link'
    }
  },
  {
    path: 'librarylist',
    name: 'LibraryList',
    component: () => import('@/views/indexLibrary/list'),
    meta: {
      title: '指标库',
      icon: 'link'
    }
  },
  {
    path: 'edit',
    name: 'FormManegerAdd',
    hidden: true,
    component: () => import('@/views/formManager/edit'),
    meta: {
      title: '编辑表单',
      icon: 'link'
    }
  },
  {
    path: 'add',
    name: 'FormManegerAdd',
    component: () => import('@/views/formManager/add'),
    hidden: true,
    meta: {
      title: '新增表单',
      icon: 'link'
    }
  },
  {
    path: 'list',
    name: 'FormManegerList',
    component: () => import('@/views/formManager/list'),
    meta: {
      title: '表单列表',
      icon: 'link'
    }
  }
  ]
}
export default tableRouter
